//
//  LXLViewController.swift
//  Weibo-YQY-test
//
//  Created by Lang on 10/11/15.
//  Copyright © 2015 Lang. All rights reserved.
//

import UIKit

class LXLTempViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "当前是第\(navigationController!.childViewControllers.count)层"
        view.backgroundColor = UIColor.whiteColor()
        
        
        //navigationItem.leftBarButtonItem = UIBarButtonItem.item("navigationbar_back_withtext",title:"首页",target: self, action: "back")
    }
    
    @objc private func back(){
        navigationController?.popViewControllerAnimated(true)
    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        navigationController?.pushViewController(LXLTempViewController(), animated: true)
    }
}
